﻿@using Web7.Container.Html
@using Web7.Core.Security
@model Web7.PagedList<Web7.Core.Security.Role>
@{
    Layout = Html.GetManagementLayout();
	
	
}
<div  >
<table border="1" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>
                   @T("SelectAll")
                </td>
                <td>
                    RoleName
                </td>
                <td>
                    @Html.ActionLink(T("Create").ToString(), "Create", "Role")
                </td>
            </tr>
        </thead>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    <input type="checkbox" name="uid" value="@item.Id" />
                </td>
                <td>
                    @item.RoleName
                </td>
				<td>
					@{

            var b = new { item.Id };
            //b.Id 
		 }
					@Html.ActionLink(T("Detail").ToString(), "Edit", "Role", new { item.Id }, null)
					|
					@Html.ActionLink(T("Edit").ToString(), "Edit", "Role", new { item.Id }, null)
					|
					@Html.ActionLink(T("Delete").ToString(), "Delete", "Role", new { item.Id }, null)
                    |
                    @Html.ActionLink(T("Rights").ToString(), "Index", "PermissionRecord", new { OwnerType = PermissionOwnerType.Role.ToString(), id = item.Id }, null)
				</td>
            </tr>
       
      
        }
    </table>
</div>